package com.zhl.javabean;

public class Test {
    public static void main(String[] args) {
        //目的：掌握实体类的书写要求、特点、应用场景
        Student s1 = new Student();
        s1.setName("张三");
        s1.setScore(20);
        System.out.println(s1.getName());
        System.out.println(s1.getScore());

        //实体类特点：
        //1. 实体类是指用来描述现实世界中某一事物的属性和行为的类。即保存数据
        StudentOperator operator = new StudentOperator(s1);
        operator.printPass();
    }
}
